package cc.mycraft.events;

import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

import cc.mycraft.MYCPlugin;

public final class PlayerKillBossEvent extends Event implements Cancellable{
	
	private static final HandlerList handlers = new HandlerList();

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}
	
	public static HandlerList getHandlerList() {
		return handlers;
	}
	
	private String Boss;
	private Player Killer;
	private boolean cancelled;
	
	public PlayerKillBossEvent(MYCPlugin p,Player player,String boss) {
		this.cancelled = false;
		this.Killer = player;
		this.Boss = boss;
	}
	public String getBoss() {
		return this.Boss;
	}
	public Player getKiller() {
		return this.Killer;
	}
	

	public boolean isCancelled() {
		return this.cancelled;
	}
	public void setCancelled(boolean b) {
		this.cancelled = b;
	}
}
